<include file="Public:header"/>
<div class="wrapper">
  <div class="sitepath">当前位置：<a href="{$webConfig['host_url']}">首页</a> &nbsp;&rsaquo;&nbsp; 网站目录</div>
  <div class="clear"></div>
</div>
<div class="wrapper">
  <div class="clearfix scatebox">
    <span class="t">省份</span>
    <ul class="scatelist">
      <li><a href="{:U(buildFilterUrl($pageUrl,$c,'',''))}">不限</a></li>
      <volist name="province" id="vo">
      <if condition="$x eq 'x'.$vo['id']">
      <li><strong>{$vo['name']}</strong></li>
      <else/>
      <li><a href="{:U(buildFilterUrl($pageUrl,$c,'x'.$vo['id']))}">{$vo['name']}</a></li>
       </if>
      </volist>
    </ul>
    
    <notempty name="city">
    <span class="t">城市</span>
    <ul class="scatelist">
      <li><a href="{:U(buildFilterUrl($pageUrl,$c,$x,''))}">不限</a></li>
      <volist name="city" id="vo">
      <if condition="$y eq 'y'.$vo['id']">
      <li><strong>{$vo['name']}</strong></li>
      <else/>
      <li><a href="{:U(buildFilterUrl($pageUrl,$c, $x, 'y'.$vo['id']))}">{$vo['name']}</a></li>
       </if>
      </volist>
    </ul>
    </notempty>
    
    <span class="t">主分类</span>
    <ul class="scatelist">
     <li><a href="{:U(buildFilterUrl($pageUrl,'',$x,$y))}">不限</a></li>
     <volist name="cateTree" id="vo">
      <if condition="$fc eq $vo['id']">
      <li><strong>{$vo['name']}</strong></li>
      <else/>
      <li><a href="{:U(buildFilterUrl($pageUrl,'c'.$vo['id'],$x,$y))}">{$vo['name']}</a></li>
       </if>
      </volist>
      
      <notempty name="cateSonTree">
      <span class="t">副分类</span>
     <ul class="scatelist">
     <li><a href="{:U(buildFilterUrl($pageUrl,'c'.$fc,$x,$y))}">不限</a></li>
     <volist name="cateSonTree" id="vo">
      <if condition="$sc eq $vo['id']">
      <li><strong>{$vo['name']}</strong></li>
      <else/>
      <li><a href="{:U(buildFilterUrl($pageUrl,'c'.$vo['id'],$x,$y))}">{$vo['name']}</a></li>
       </if>
      </volist>
      </notempty>
    </ul>
  </div>
</div>
<div class="clear"></div>
<div class="wrapper">
  <div class="mainbox">
    <div class="mainbox-left">
      <div class="clearfix listbox">
        <h1>网站分类目录列表</h1>
        <ul class="sitelist">
          <volist name="list" id="vo">
          <li><a href="{$vo['url']}"><img src="http://api.webthumbnail.org?width=320&height=200&screen=1024&url=http://{$vo['domain']}" width="120" height="90" alt="{$vo['name']}" class="thumb" /></a>
            <div class="info"><a href="{$vo['url']}" class="title">{$vo['name']}</a>
              <div class="intro">{$vo['description']}</div>
              <div class="url"><a href="http://{$vo['domain']}/" rel="nofollow" target="_blank" class="visit" onclick="clickout({$vo['id']})">{$vo['domain']}</a> - {:dateLocalFormat($vo['add_time'])} - <a href="javascript:good('websites', {$vo['id']});" rel="nofollow">收藏 (<span id="websites-{$vo['id']}">{$vo['like_count']}</span>)</a></div>
            </div>
          </li>
          
          </volist>
        </ul>
        <div class="clearfix showpage"><span class="total_page">共{$page['count']}个网站 当前{$page['nowPage']}/{$page['countPage']}页</span>
        <a href="{:U(buildFilterUrl($pageUrl,$c,$x,$y))}" class="first_page">首页</a>
        <gt name="page['prev']" value="1"><a href="{:U(buildFilterUrl($pageUrl,$c,$x,$y, 'p'.$page['prev']))}" class="prev_page">上一页</a></gt>
        <foreach name="page['forPage']" item="vo">
            <if condition="($page['nowPage'] == $vo)"> <span class="current">{$vo}</span>
              <else/>
              <a href="{:U(buildFilterUrl($pageUrl,$c,$x,$y, 'p'.$vo))}" class="pages">{$vo}</a> </if>
          </foreach>
          <gt name="page['prev']" value="1"><a href="{:U(buildFilterUrl($pageUrl,$c,$x,$y, 'p'.$page['next']))}" class="next_page">下一页</a></gt>
            <a href="{:U(buildFilterUrl($pageUrl,$c,$x,$y, 'p'.$page['endPage']))}" class="last_page">尾页</a>
          
        </div>
      </div>
    </div>
    <div class="mainbox-right">
      <div>{:W('Ad', 4)}</div>
      <div class="clear"></div>
      <div class="hotbox">
        <h2>最新目录资讯</h2>
        <ul class="hotlist">
        <article limit="9">
        <li><a href="{$vo['url']}"><span>{$key+1}.</span>{$vo['name']}</a><em>{$vo['views']}℃</em></li>
        </article>
        </ul>
      </div>
      <div class="clear"></div>
      <div class="bestbox">
        <h2>最新加入站点</h2>
        <ul class="bestlist">
        	<websites limit="5">
            	 <li <if condition="($key+1) == 5"> class="last"</if>>
              <div><a href="{$vo['url']}" rel="nofollow"><img src="http://api.webthumbnail.org?width=320&height=200&screen=1024&url=http://{$vo['domain']}" alt="{$vo['name']}"></a></div>
              <p><a href="{$vo['url']}">{$vo['name']}</a><br>
                <span>{$vo['domain']}</span></p>
            </li>
           </websites>
        </ul>
      </div>
    </div>
  </div>
</div>
<include file="Public:footer"/> 